package com.baorun.test.web.controller.web.openFeign.impl;

import com.baorun.entity.Result;
import com.baorun.test.web.controller.web.openFeign.ProviderOpenFeignService;
import org.springframework.stereotype.Component;

/**
 * @author: wang
 * @date: 2021/9/1 16:56
 * @description:
 */
@Component
public class ProviderOpenFeignServiceFallbackServiceImpl implements ProviderOpenFeignService {

    @Override
    public Result queryBooks() {
        Result<Object> result = new Result<>();
        result.setCode(444);
        result.setMsg("访问超时");
        result.setData(null);
        return result;
    }

    @Override
    public Result timeOut() {
        Result<Object> result = new Result<>();
        result.setCode(444);
        result.setMsg("访问超时");
        result.setData(null);
        return result;
    }

}
